
<div class="div div-plain">

	<?php  echo CHtml::link("新建分类",array("link/add"),array("class"=>"btn"));?>
<br/><br/>
	<?php echo CHtml::form('','post',array('enctype'=>'multipart/form-data',"data-ajax"=>"false")); ?>

	<?php foreach($models as $model):?>
			<?php echo CHtml::activeHiddenField($model,"[{$model->id}]id"); ?>
	<div class='span3 alert alert-warn'>
	
		<table>
			<tr>
				<th>Title:</th>
				<td><?php echo CHtml::activeTextField($model,"[{$model->id}]title",array('size'=>4,'maxlength'=>30,"value"=>$model->title)); ?>
				</td>
			</tr>
			<tr>
				<th>Url:</th>
				<td><?php echo CHtml::activeTextField($model,"[{$model->id}]url",array('size'=>4,'maxlength'=>30,"value"=>$model->url)); ?>
				</td>
			</tr>
			<tr>
				<th>Seq:</th>
				<td><?php echo CHtml::activeTextField($model,"[{$model->id}]seq",array('size'=>4,"value"=>$model->seq)); ?>
				</td>
			</tr>

			<tr>
				<th>Logo:</th>
				<td><?php echo CHtml::activeTextField($model,"[{$model->id}]logo",array('size'=>4,"value"=>$model->logo)); ?>
				</td>
			</tr>
			<tr>
				<th></th>
				<td><?php  echo CHtml::link("删除",array("link/delete","id"=>$model->id),array("class"=>'btn'))?>
					<?php  echo CHtml::link("查看",array("category/admin","id"=>$model->id),array("class"=>'btn'))?>
				</td>
			</tr>
		</table>

	</div>
	<?php endforeach;?>
	<div style='clear: both'></div>
	<?php echo CHtml::submitButton('确定',array("class"=>'btn')); ?>
	<?php echo CHtml::endForm(); ?>
</div>
